home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
apps
/
math
/
ols.zoo
/
r4
< prev
next >
Wrap
Text File
|
1993-04-16
|
519b
|
29 lines
#
# This awk program was generated by ols.
# It reads data from StdIn and prints predictions to StdOut.
#
# It is built for the data layout used when estimating.
# However, this should not be hard to modify.
#
{
x2 = $3;
_constant = $1;
y = $4;
predicted = (3.935164*x2) \
+ (6.102074*_constant);
error = y - predicted;
print predicted " " y " " error;
SSE += (error*error);
}
END {
MSE = SSE/NR;
print "MSE = " MSE ", SSE = " SSE > "/dev/tty";
}
# End of generated script.